package com.ttg.web.dao.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ttg.model.pojo.LivenessMctConfig;
import com.ttg.model.mapper.LivenessMctConfigMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.model.pojo.ModelMctMonth;
import com.ttg.web.dao.LivenessMctConfigDao;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TblLivenessMctConfig) daoImpl
 *
 * @author chenyou
 * @datetime 2025-11-12 16:05:33
 */
@Service
public class LivenessMctConfigDaoImpl extends ServiceImpl<LivenessMctConfigMapper, LivenessMctConfig> implements LivenessMctConfigDao {

    @Override
    public LivenessMctConfig getByType(Integer type) {
        LambdaQueryWrapper<LivenessMctConfig> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(LivenessMctConfig::getLmcDimType,type);
        return getOne(wrapper);
    }
}

